﻿using LittleBee.Utils;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;

namespace LittleBee.DBA
{
	public abstract class DBConnectionPool : ObjectPool<DbConnection>
	{
		public string ConnectionString { get; set; }
		public DBConnectionPool(string strConnectionString, UInt32 nCapacity = 100)
			:base(nCapacity)
		{
			ConnectionString = strConnectionString;
		}

		protected override DbConnection CreateObjcect()
		{
			return CreateObjcect();
		}

		protected override void DisposeObjcect(DbConnection obj)
		{
			DisposeObjcect(obj);
		}
	}
}
